﻿@model HelpQuestion
<div class="page">
    <div class="pageContent">
        <form method="post" action="/Help/Question/@Model.Id" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent">
            <div>
                <p>
                    <label>
                        分 类：
                    </label>
                    <select name="Category">
                        @foreach (var o in HelpQuestion.CategoryDictionary)
                        {
                            <text>
                            <option value="@(o.Key)" @(Model.Category == o.Key ? "selected=selected" : string.Empty)>@o.Value</option>
                            </text>
                        }
                    </select>
                </p>
                <p>
                    <label>
                        首 显：
                    </label>
                    <select name="ShowOnMenu">
                        <option value="False" @(!Model.ShowOnMenu ? "selected=selected" : string.Empty)>否</option>
                        <option value="True" @(Model.ShowOnMenu ? "selected=selected" : string.Empty)>是</option>
                    </select>
                </p>
                <p>
                    <label>
                        标 题：
                    </label>
                    <input type="text" name="Title" value="@(Model.Title)" class="required"/>
                </p>
                <p>
                    <label>
                        排 序：
                    </label>
                    <input type="text" name="DisplayOrder" value="@(Model.DisplayOrder)" class="required"/>
                </p>
                <div>
                    <label>
                        内 容
                    </label>
                    <p>
                    </p>
                    <div>
                        <textarea class="editor" name="Content" rows="8" cols="100" uplinkurl="/Product/Upload/"
                            uplinkext="zip,rar,txt" upimgurl="/Product/Upload/" upimgext="jpg,jpeg,gif,png"
                            upflashurl="/Product/Upload/" upflashext="swf" upmediaurl="/Product/Upload/"
                            upmediaext="avi" style="width: 800px; height: 350px;">@Model.Content
							</textarea></div>
                </div>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="button" onclick="this.form.onsubmit();">
                                保存</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" onclick="$.pdialog.closeCurrent();">
                                取消</button></div>
                    </div>
                </li>
            </ul>
        </div>
        </form>
    </div>
</div>
